package com.morningstar.flow.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.math.BigInteger;
import java.time.LocalDateTime;

@Setter
@Getter
@TableName(value = "flow_node_instance", autoResultMap = true)
public class FlowNodeInstance {

    @TableId(value = "node_instance_id", type = IdType.ASSIGN_ID)
    private BigInteger nodeInstanceId;

    @TableField("process_instance_id")
    private String processInstanceId;

    @TableField("execution_id")
    private String executionId;

    @TableField("node_activity_id")
    private String nodeActivityId;

    @TableField("agree")
    private Integer agree;

    @TableField("refuse")
    private Integer refuse;
    /**
     * 1 审批中
     */
    @TableField("status")
    private String status;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("end_time")
    private LocalDateTime endTime;
}
